Merge sed commands into a script